package com.fagertveit.android.game.cb;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import com.fagertveit.android.game.framework.Screen;
import com.fagertveit.android.game.framework.impl.GLGame;

public class CthulhuBreakerActivity extends GLGame {
	boolean firstTimeCreate = true;
    /** Called when the activity is first created. */
    @Override
    public Screen getStartScreen() {
    	return new MenuScreen(this);
    }
    
    public void onSurfaceCreated(GL10 gl, EGLConfig config) {
    	super.onSurfaceCreated(gl, config);
    	if(firstTimeCreate) {
    		Assets.load(this);
    		firstTimeCreate = false;
    	} else {
    		Assets.reload();
    	}
    }
    
    public void onPause() {
    	super.onPause();
    }
}